import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
    meta: {
      title: "首页",
    },
  },
  {
    path: "/photograph",
    name: "PhotoGraph",
    component: () => import("@/views/PhotoGraph"),
    meta: {
      title: "摄影图",
    },
  },
  {
    path: "/vectorgraph",
    name: "VectorGraph",
    component: () => import("@/views/VectorGraph"),
    meta: {
      title: "矢量图",
    },
  },
  {
    path: "/setlunch",
    name: "SetLunch",
    component: () => import("@/views/SetLunch"),
    meta: {
      title: "套餐价格",
    },
  },
];

const router = new VueRouter({
  routes,
});

export default router;
